package com.hrt.datasender.web.system;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import com.btcode.web.core.annotation.RequestMapping;
import com.btcode.web.core.controller.Controller;
import com.hrt.datasender.web.WebMain;

@RequestMapping(path = "system")
public class SystemController extends Controller {

    @RequestMapping(path = "start")
    public void start(ServletRequest resq, ServletResponse res) throws Exception {
        StartService.getInstance().reStart();
    }

    @RequestMapping(path = "version")
    public void version(ServletRequest resq, ServletResponse res) throws Exception {
        success(WebMain.VERSION);
    }

}
